package com.zjxh.zjxh.mob.vo.req;

import com.zjxh.zjxh.common.constant.FileEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author: oyp
 * @date: 2022/6/13 on 11:37
 * @desc:
 */
@ApiModel(description = "统一图片上传（一张）")
@Accessors(chain = true)
@Data
public class FileUploadReq {

  @ApiModelProperty("图片类型枚举")
  @NotNull(message = "参数错误")
  private FileEnum fileEnum;

  // @ApiModelProperty("平台类型枚举")
  // @NotNull(message = "参数错误")
  // private PlatformEnum platform;

  @ApiModelProperty("图片(一张)")
  @NotNull(message = "图片为空")
  private MultipartFile image;
}
